package com.chukun.multi.producerconsumer;

public interface ProductChannel<P> {

    /**
     * 从通道里面取出一个产品
     * @return
     */
    P take() throws InterruptedException;

    /**
     * 往通道里面放入一个产品
     * @param product
     * @throws InterruptedException
     */
    void put(P product) throws InterruptedException;
}
